.tokenize {
  > .tokens-container {
    position: relative;
    list-style: none;
    padding: 0 0 5px 5px;
    height: auto;
    min-height: 34px;
    cursor: text;
    border-radius: 3px;
    border: 1px solid #191919;
    background-color: #21303a;

    &.disabled {
      background-color: #eee;
      cursor: not-allowed;
    }
  }

  &.focus > .tokens-container {
    outline: 0;
    border-color: #191919;
    background-color: #21303A;
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  > .tokens-container {
    &.input-sm {
      padding: 0 0 4px 4px;
      min-height: 30px;
    }

    &.input-lg {
      padding: 0 0 9px 9px;
      min-height: 46px;
    }

    > {
      .token {
        padding: 0 1.2em 0 5px;
        background-color: #d77610;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
        border: 1px solid #191919;
        display: inline-block;
        margin: 5px 5px 0 0;
        position: relative;
        vertical-align: middle;
      }

      .placeholder, .token-search {
        display: inline-block;
        margin: 5px 5px 0 0;
        position: relative;
        vertical-align: middle;
      }
    }
  }

  &.sortable > .tokens-container > .token {
    cursor: move;
  }

  &.single > .tokens-container > .token {
    display: block;
    border-color: #191919;
  }

  &.sortable > .tokens-container > .token.shadow {
    border-color: #191919;
    background-color: #21303A;
    filter: alpha(opacity = 50);
    opacity: .2;
  }

  > .tokens-container {
    > {
      .placeholder {
        color: #c9c9c9;
        padding: 0;
      }

      .token-search {
        color: #FFF;
        padding: 0;
      }
    }

    &:focus, &:hover {
      border-color: #d77610;
      background-color: #172229;
    }

    > .token-search > input {
      padding: 0;
      margin: 0;
      line-height: 1em;
      border: none;
      outline: none;
      width: 100%;
      background-color: transparent;

      &::-ms-clear {
        display: none;
      }
    }

    &.input-sm > {
      .placeholder, .token-search, .token {
        margin: 4px 4px 0 0;
      }
    }

    &.input-lg > {
      .placeholder, .token-search, .token {
        margin: 9px 9px 0 0;
      }
    }

    > .token {
      &.pending-delete {
        background-color: #5b72a4;
        border-color: #425c96;
        color: #fff;

        > .dismiss {
          color: #fff;
        }
      }

      > .dismiss {
        position: absolute;
        right: 5px;
        color: #a9b9d8;
        text-decoration: none;
        cursor: pointer;

        &:after {
          content: "×";
          color: #FFF;
        }
      }
    }
  }
}

.tokenize-dropdown {
  position: absolute;
  display: none;

  > .dropdown-menu {
    min-height: 10px;
    width: 100%;
    display: block;
    margin: -1px 0 0 0;
    visibility: visible;
    opacity: 1;

    li {
      cursor: pointer;

      > a .tokenize-highlight {
        font-weight: bold;
      }

      &.locked {
        padding: 3px 20px;
        color: #FFF;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow-x: hidden;
      }

      > a {
        text-overflow: ellipsis;
        overflow-x: hidden;
      }

      &:not(.active) a {
        &:hover, &:focus {
          background-color: transparent;
        }
      }
    }
  }
}
